package com.hongdee.crm.role.service;

import com.hongdee.crm.Template.entity.TCrmTemplateRef;
import com.hongdee.crm.role.entity.TCrmCarRole;

import java.util.List;
import java.util.Map;

/**
 * Created by dell on 2017/5/4.
 */
public interface ITcrmRoleService {
    /*
    * 停用启动
    * */
    public void update(String id, String status) throws Exception;
    /**
     * 保存更新
     * */
    public TCrmCarRole saveOrUpdate(TCrmCarRole tem) throws Exception;
    /*
    * 分页
    * */
    public Map newPage(String start, String limit, String templateName) throws Exception;
    /**
     * 更改
     * */
    public Map info(String id) throws Exception;
    /**
     * 下拉列表查询
     * */
    public List<Map> combo() throws Exception;

    public Map findTemplateByRoleId(String roleId) throws Exception;
}
